﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="Ec2BootstrapperGUI.Dashboard"
	x:Name="Window"
	Title="MainWindow"
	Width="640" Height="665" MinHeight="246" MinWidth="606" AllowsTransparency="True" 
    ResizeMode="CanResizeWithGrip" SizeToContent="Manual" WindowStyle="None" Background="{x:Null}" 
    Foreground="{x:Null}" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" WindowStartupLocation="CenterScreen"
    xmlns:Ec2BootstrapperGUI="clr-namespace:Ec2BootstrapperGUI" BorderThickness="0,0,0,30">

    <Grid x:Name="LayoutRoot">
        <Rectangle Fill="{DynamicResource WindowBackgroundFill}" Stroke="{DynamicResource WindowBackgroundStroke}" RadiusX="8" RadiusY="8" HorizontalAlignment="Stretch" Margin="33,33,8,8" VerticalAlignment="Stretch" Width="Auto" Height="Auto" BitmapEffect="{DynamicResource WindowOuterGlow}" x:Name="bkgBaseContent"/>
        <Rectangle BitmapEffect="{DynamicResource WindowOuterGlow}" Fill="#FFFAA700" RadiusX="8" RadiusY="8" HorizontalAlignment="Left" Margin="8,8,0,0" VerticalAlignment="Top" Width="100" Height="100" x:Name="bkgLogo"/>
        <Rectangle Fill="#FFFAA700" RadiusX="8" RadiusY="8" HorizontalAlignment="Left" Margin="34,34,33,0" VerticalAlignment="Top" Width="100" Height="100" x:Name="bkgBetween"/>
        <Canvas Width="80.000" Height="80.000" HorizontalAlignment="Left" Margin="18,18,0,0" VerticalAlignment="Top" d:LayoutOverrides="Width, Height" x:Name="LocoIcon">
            <Canvas>
                <Path Opacity="0.4" Fill="#fff94a00" Data="F1 M 50.735,0.000 L 38.767,17.070 L 40.980,37.796 L 52.821,20.828 L 50.735,0.000 Z"/>
            </Canvas>
            <Canvas>
                <Path Opacity="0.3" Fill="#fff94a00" Data="F1 M 75.959,19.330 L 55.419,22.942 L 42.321,39.162 L 62.699,35.532 L 75.959,19.330 Z"/>
            </Canvas>
            <Canvas>
                <Path Opacity="0.1" Fill="#fff94a00" Data="F1 M 80.000,50.734 L 62.920,38.773 L 42.182,40.986 L 59.161,52.820 L 80.000,50.734 Z"/>
            </Canvas>
            <Canvas>
                <Path Fill="#fff94a00" Data="F1 M 60.758,75.887 L 57.143,55.358 L 40.913,42.268 L 44.546,62.634 L 60.758,75.887 Z"/>
            </Canvas>
            <Canvas>
                <Path Opacity="0.9" Fill="#fff94a00" Data="F1 M 29.083,80.000 L 41.296,63.104 L 39.383,42.348 L 27.297,59.146 L 29.083,80.000 Z"/>
            </Canvas>
            <Canvas>
                <Path Opacity="0.8" Fill="#fff94a00" Data="F1 M 4.189,60.841 L 24.729,57.229 L 37.828,41.008 L 17.449,44.640 L 4.189,60.841 Z"/>
            </Canvas>
            <Canvas>
                <Path Opacity="0.6" Fill="#fff94a00" Data="F1 M 0.000,29.458 L 17.081,41.418 L 37.818,39.206 L 20.840,27.372 L 0.000,29.458 Z"/>
            </Canvas>
            <Canvas>
                <Path Opacity="0.5" Fill="#fff94a00" Data="F1 M 19.243,4.306 L 22.858,24.834 L 39.087,37.926 L 35.454,17.558 L 19.243,4.306 Z"/>
            </Canvas>
        </Canvas>
        <Rectangle Stroke="{x:Null}" RadiusX="8" RadiusY="8" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="96" Height="96" x:Name="LogoGloss" Cursor="Hand" MouseLeftButtonDown="LogoGloss_MouseLeftButtonDown">
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#99FDFDFD" Offset="0"/>
                    <GradientStop Color="#00FDFDFD" Offset="0.612"/>
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <Canvas Width="474" Height="111.500" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,36,11,0" x:Name="bkgLines">
            <Path Data="F1 M1.4266366E-14,-3.6948222E-13 C104.001,-3.6948222E-13 154.001,100.25 287.001,99.25 329.153,98.934 457.492,104.25 457.492,104.25 L457.492,5.6310512E-13 1.4266366E-14,-3.6948222E-13 z" Canvas.Left="16.008" Width="457.492" Height="100">
                <Path.Fill>
                    <LinearGradientBrush MappingMode="Absolute" EndPoint="413.668,520.938" StartPoint="413.668,420.938">
                        <LinearGradientBrush.Transform>
                            <MatrixTransform Matrix="1,0,0,-1,-82.49,523.938"/>
                        </LinearGradientBrush.Transform>
                        <GradientStop Color="#00FFFFFF" Offset="0"/>
                        <GradientStop Color="#7FFFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
            <Path StrokeThickness="0.3" Stroke="#ffffffff" StrokeMiterLimit="1.0" Data="F1 M0.14999731,0.15 C83.974997,0.15 179.25,77.446 330.641,93.387" Canvas.Left="143.859" Canvas.Top="2.1" Width="330.791" Height="93.537"/>
            <Path StrokeThickness="0.3" Stroke="#fffde6dc" StrokeMiterLimit="1.0" Data="F1 M 120.009,1.917 C 219.530,2.917 297.180,84.663 475.172,98.114"/>
            <Path StrokeThickness="0.3" Stroke="#fffccdb9" StrokeMiterLimit="1.0" Data="F1 M 96.009,1.583 C 211.226,3.583 266.746,89.781 471.340,100.741"/>
            <Path StrokeThickness="0.4" Stroke="#fffcb597" StrokeMiterLimit="1.0" Data="F1 M 72.009,1.250 C 202.921,4.250 236.312,94.898 467.507,103.368"/>
            <Path StrokeThickness="0.4" Stroke="#fffb9c74" StrokeMiterLimit="1.0" Data="F1 M 48.008,0.917 C 194.617,4.917 205.877,100.015 463.674,105.996"/>
            <Path StrokeThickness="0.5" Stroke="#CCFA8452" StrokeMiterLimit="1.0" Data="F1 M 24.008,0.583 C 186.313,5.583 175.443,105.133 459.842,108.623"/>
            <Path StrokeThickness="0.5" Stroke="#CCF96B2F" StrokeMiterLimit="1.0" Data="F1 M 0.008,0.250 C 178.009,6.250 145.009,110.250 456.009,111.250"/>
        </Canvas>
        <Path Fill="{DynamicResource WindowTitleBarGloss}" Stretch="Fill" Stroke="{x:Null}" HorizontalAlignment="Stretch" Margin="106,36,10,0" VerticalAlignment="Top" Width="Auto" Height="28" Data="M-6.5,1.6841725E-15 C-6.5,1.6841725E-15 346.66667,0 516,0 520.41828,0 524,3.581722 524,8 L524,20 C524,24.418278 520.41828,28 516,28 346.66667,28 -6.5,28 -6.5,28 -6.5,28 -6.5,1.6841725E-15 -6.5,1.6841725E-15 z" x:Name="TitleBarGloss" Cursor="Hand" /> <!--MouseLeftButtonDown="TitleBarGloss_MouseLeftButtonDown"-->
        <StackPanel Margin="0,33,11,0" VerticalAlignment="Top" Height="36" HorizontalAlignment="Right" Orientation="Horizontal" d:LayoutOverrides="HorizontalAlignment" x:Name="WindowsButtons">
            <Button Style="{StaticResource WindowButton}" Width="26" Height="26" x:Name="btnMinimize" Click="MinimizeButton_Click">
                <Path StrokeThickness="0.4" Stroke="#ffbe6d15" StrokeMiterLimit="1.0" Fill="#ffffffff" Data="F1 M11.144,2.5759999 L1.139,2.5759999 C0.62099996,2.5759999 0.19999996,2.0449999 0.19999996,1.3879999 0.19999996,0.73199993 0.62099996,0.19999993 1.139,0.19999993 L11.144,0.19999993 C11.662,0.19999993 12.082,0.73199993 12.082,1.3879999 12.082,2.0449999 11.662,2.5759999 11.144,2.5759999 L11.144,2.5759999 z" HorizontalAlignment="Center" VerticalAlignment="Bottom" />
            </Button>
            <Button Style="{StaticResource WindowButton}" Width="26" Height="26" x:Name="btnResizing" Click="ResizingButton_Click">
                <!--
                This is Restore Button Icon
                -->
                <!--
                <Path StrokeThickness="0.4" Stroke="#ffbe6d15" StrokeMiterLimit="1.0" Fill="#ffffffff" Data="F1 M 3.538,7.938 C 3.007,7.938 2.575,8.388 2.575,8.942 L 2.575,11.867 C 2.575,12.421 3.007,12.872 3.538,12.872 L 6.409,12.872 C 6.940,12.872 7.372,12.421 7.372,11.867 L 7.372,10.435 L 11.909,10.435 C 12.440,10.435 12.872,9.983 12.872,9.430 L 12.872,3.580 C 12.872,3.025 12.440,2.575 11.909,2.575 L 6.169,2.575 C 5.638,2.575 5.206,3.025 5.206,3.580 L 5.206,7.938 L 3.538,7.938 L 3.538,7.938 Z M 6.409,15.248 L 3.538,15.248 C 1.696,15.248 0.198,13.731 0.198,11.867 L 0.198,8.942 C 0.198,7.324 1.327,5.968 2.829,5.638 L 2.829,3.580 C 2.829,1.716 4.327,0.198 6.169,0.198 L 11.909,0.198 C 13.751,0.198 15.249,1.716 15.249,3.580 L 15.249,9.430 C 15.249,11.294 13.751,12.812 11.909,12.812 L 9.616,12.812 C 9.212,14.218 7.927,15.248 6.409,15.248 L 6.409,15.248 Z" HorizontalAlignment="Center" VerticalAlignment="Center"/>
				-->
                <Path StrokeThickness="0.4" Stroke="#ffbe6d15" StrokeMiterLimit="1.0" Fill="#ffffffff" Data="F1 M 3.045,2.178 C 2.566,2.178 2.178,2.566 2.178,3.045 L 2.178,9.232 C 2.178,9.711 2.566,10.100 3.045,10.100 L 9.232,10.100 C 9.711,10.100 10.100,9.711 10.100,9.232 L 10.100,3.045 C 10.100,2.566 9.711,2.178 9.232,2.178 L 3.045,2.178 L 3.045,2.178 Z M 9.232,12.079 L 3.045,12.079 C 1.475,12.079 0.198,10.803 0.198,9.232 L 0.198,3.045 C 0.198,1.475 1.475,0.198 3.045,0.198 L 9.232,0.198 C 10.803,0.198 12.079,1.475 12.079,3.045 L 12.079,9.232 C 12.079,10.803 10.803,12.079 9.232,12.079 L 9.232,12.079 Z" HorizontalAlignment="Center" VerticalAlignment="Center" />

            </Button>
            <Button Style="{StaticResource WindowButton}" x:Name="btnClose" Click="exit_Click">
                <Path StrokeThickness="0.4" Stroke="#ffbe6d15" StrokeMiterLimit="1.0" Fill="#ffffffff" Data="F1 M 11.750,10.008 L 7.813,6.099 L 11.670,2.270 C 12.109,1.833 12.109,1.125 11.670,0.689 C 11.230,0.253 10.518,0.253 10.078,0.689 L 6.222,4.519 L 2.201,0.525 C 1.761,0.089 1.049,0.089 0.609,0.525 C 0.170,0.961 0.170,1.669 0.609,2.105 L 4.631,6.099 L 0.528,10.172 C 0.088,10.608 0.088,11.315 0.528,11.752 C 0.748,11.970 1.036,12.080 1.324,12.080 C 1.612,12.080 1.899,11.970 2.120,11.752 L 6.222,7.679 L 10.158,11.588 C 10.379,11.807 10.667,11.916 10.955,11.916 C 11.242,11.916 11.531,11.807 11.750,11.588 C 12.190,11.152 12.190,10.444 11.750,10.008 Z" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            </Button>
        </StackPanel>
        <Canvas Margin="103,62,303.393,0" VerticalAlignment="Top" Height="72" x:Name="Title">
            <TextBlock Text="EC2 Bootstrapper" TextWrapping="Wrap" Foreground="#FFFFFFFF" FontFamily="./Fonts/#Franklin Gothic" FontSize="36" FontStretch="SemiCondensed" d:IsStaticText="True" FontWeight="Normal"/>
            <TextBlock Text="EC2 Bootstrapper" TextWrapping="Wrap" Foreground="#FFFFFFFF" FontFamily="./Fonts/#Franklin Gothic" FontSize="36" FontStretch="SemiCondensed" d:IsStaticText="True" FontWeight="Normal" RenderTransformOrigin="0.5,0.5" Margin="0,30,0,0">
				<TextBlock.OpacityMask>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#00FFFFFF" Offset="0.348"/>
						<GradientStop Color="#BFFFFFFF" Offset="1"/>
					</LinearGradientBrush>
				</TextBlock.OpacityMask>
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1" ScaleY="-1"/>
						<SkewTransform AngleX="0" AngleY="0"/>
						<RotateTransform Angle="0"/>
						<TranslateTransform X="0" Y="0"/>
					</TransformGroup>
				</TextBlock.RenderTransform>
            </TextBlock>
        </Canvas>
        <Menu HorizontalAlignment="Stretch" Margin="34,118,9,0" VerticalAlignment="Top" Width="Auto" Height="30" d:LayoutOverrides="Height" Foreground="#FFFFFFFF" Background="{x:Null}" Style="{DynamicResource MainWindowMenuStyle}" x:Name="MainMenu">
            <MenuItem Header="_File" Margin="8,1,0,0" Padding="26,0" Height="26" Style="{DynamicResource MenuItemStyle}">
                <MenuItem Name="launchMenu" Header="Launch Instance..." Click="launchInstance_Click"/>
                <MenuItem Name="DeployMenu" Header="Deploy..." Click="deploy_Click" IsEnabled="False"/>
                <Separator/>
                <MenuItem Header="Exit" Click="exit_Click"/>
            </MenuItem>
            <MenuItem Header="_View" Margin="8,1,0,0" Padding="26,0" Height="26" Style="{DynamicResource MenuItemStyle}">
                <MenuItem Name="refreshMenu" Header="Refresh" Click="refreshMenu_Click"/>
            </MenuItem>
            <MenuItem Header="_Tools" Margin="8,1,0,0" Padding="26,0" Height="26" Style="{DynamicResource MenuItemStyle}">
                <MenuItem Name="configMenu" Header="AWS Configuration..." Click="configureMenu_Click"/>
                <Separator/>
                <MenuItem Header="Remote Desktop Connection" Click="remoteConnect_Click"/>
            </MenuItem>
            <MenuItem Header="_Help" Margin="8,1,0,0" Padding="26,0" Height="26" Style="{DynamicResource MenuItemStyle}">
                <MenuItem Name="About" Header="About EC2 Bootstrapper" Click="aboutMenu_Click"/>
            </MenuItem>
        </Menu>
        <Grid Margin="41,154,16,42" x:Name="clientR">
            <!--<Rectangle Fill="{DynamicResource ContentBackgroundFill}" RadiusX="8" RadiusY="8" HorizontalAlignment="Stretch" x:Name="bkgContent" VerticalAlignment="Stretch" Width="Auto" Height="Auto" StrokeThickness="1" Stroke="{DynamicResource ContentContainerBackgroundStroke}"/>
            <ListBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" IsSynchronizedWithCurrentItem="True" Background="#FFC24646" BorderBrush="{x:Null}" Foreground="#FFFFFFFF" ItemsSource="{Binding Mode=OneWay, Source={StaticResource TempData_BINDERDS}}" ItemTemplate="{DynamicResource TempData_BINDERTemplate}" Style="{DynamicResource ListBoxStyle}" Margin="8,8,8,16" ItemContainerStyle="{DynamicResource ListBoxItemStyle}" />-->
        </Grid>
        <StatusBar HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="Auto" Height="Auto" Background="{x:Null}" Foreground="#FFFFFFFF" BorderBrush="{x:Null}" Margin="0,0,24,10">
            <TextBlock Name="StatusDesc" HorizontalAlignment="Left" VerticalAlignment="Top" Text="Ready" TextWrapping="Wrap" FontSize="11" Margin="0,0,8,0"/>
            <ProgressBar Name="ProgBar" HorizontalAlignment="Left" VerticalAlignment="Top" Width="200" Height="15" Value="50"/>
        </StatusBar>
    </Grid>
</Window>